package com.lebang.mapper;

import com.lebang.configuration.datasource.DataSource;
import com.lebang.domain.CencesNewHand;
import com.lebang.example.CencesNewHandExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * CencesNewHandMapper继承基类
 */
@Mapper
public interface CencesNewHandMapper extends MyBatisBaseDao<CencesNewHand, Integer, CencesNewHandExample> {

    List<CencesNewHand> sumData(@Param("likeBrand") String likeBrand, @Param("page") Long page, @Param("limit") Integer limit, @Param("star") Integer star, @Param("end") Integer end, @Param("appId") Integer appId);

    Long countData(@Param("likeBrand") String likeBrand, @Param("star") Integer star, @Param("end") Integer end, @Param("appId") Integer appId);

    @DataSource("commonDB")
    int insertAll(CencesNewHand cencesNewHand);
}